package com.niiwoo.civet.mobile.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.niiwoo.civet.account.dto.common.LanMaoGatewayRequestDTO;
import com.niiwoo.civet.account.dto.request.CreateCompanyRegisterOrderRequestDTO;
import com.niiwoo.civet.account.service.AccountRegisterDubboService;
import com.niiwoo.civet.mobile.vo.request.CreateCompanyRegisterOrderRequestVO;
import com.niiwoo.civet.mobile.vo.response.FortunePlazaResponseVO;
import com.niiwoo.tripod.web.annotation.AuthIgnore;
import com.niiwoo.tripod.web.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author fyf
 * @date created in 16:04 2018/1/24
 * @description :
 **/
@Slf4j
@RestController
@RequestMapping("/checkFileConfirm")
@Api(tags = "企业绑卡", description = "/companyBindCard")
@AuthIgnore
public class CompanyBindCardController {
    @Reference(version = "1.0.0")
    private AccountRegisterDubboService accountRegisterDubboService;
    @PostMapping("/createCompanyBindCardInfo")
    @ApiOperation("企业绑卡")
    public Result<LanMaoGatewayRequestDTO> createCompanyBindCardInfo(CreateCompanyRegisterOrderRequestVO requestVO) {
        CreateCompanyRegisterOrderRequestDTO reqDTO = new CreateCompanyRegisterOrderRequestDTO();
        reqDTO.setBankcardNo(requestVO.getBankcardNo());
        reqDTO.setPlatformUserNo(requestVO.getPlatformUserNo());
        reqDTO.setBankCode(requestVO.getBankCode());
        LanMaoGatewayRequestDTO param= accountRegisterDubboService.createCompanyBindBankCardOrder(reqDTO);
        
        return Result.with(param);
    }
}
